<?php

$_CLASS['queryCLS'] = "class_php/queryCLS.php";


class report extends Module
{
	var $socket = 0;
	var $analyzeArray = 1;
	var $analyzeError = 1;
	var $connDB = 1;
	var $func = 1;
	var $funcDB = 0;
	var $sqlFunc = 1;
	var $request = array();
	var $smarty = 1;
	var $session = array();
	var $impBase = array();
	var $fldError = array();
	var $usrError = array();
	var $sysError = array();
	var $usrInfo = array();
	var $usrInfoFuncJS = '';
	var $usrInfoValueBtn = '';
	var $extClass = array();
	var $appLog = 1;
	var $lastPageNo = 0;
	var $menu = 1;
	var $security = 1;
	
	function start()
	{
		if ( ! isset( $this->request["fDataInizio"] ) )	$this->request["fDataInizio"] = "";
		if ( ! isset($this->request['order']) ) $this->request['order'] = 'cam_campagna';
		if ( ! isset($this->request['orderType']) ) $this->request['orderType'] = 'asc';
		
		$this->queryCLS->listReportOre('',$this->request['fDataInizio'],$this->request['fDataFine']);
		
		
		
		$this->fillValue("fDataInizio|fDataFine", $this->request);
		$this->fillValue("id|campagna|data|durata|note|noteTR|nome|cognome", $this->request);
	}

	
	function show()
	{		
		
		
		$this->smarty->assign("mod","utente");
		$this->smarty->assign("do","report");
		$this->smarty->assign("page","Report");
		
		if ( !isset( $this->request['expDati'] ) ) 
		$this->smarty->display($this->session["ruolo"]."/utente/report.tpl.html");
	}
}

?> 
 
 
